package com.android.jump.jumper;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;

import com.android.jump.physics.ObjectWithPhysics;

public class DrawableObject extends ObjectWithPhysics
{
    private Bitmap mBitmap;
    private Paint mPaint;
    
    public DrawableObject(Bitmap nBitmap) {
        mBitmap = nBitmap;
        mPaint = new Paint();
    }
    
    public void doDraw(Canvas canvas) {
        canvas.drawBitmap(mBitmap, (float)getPositionX(), (float)getPositionY(), mPaint);
    }
    
    public int getHeight() {
        return mBitmap.getHeight();
    }
    
    public int getWidth() {
        return 90/* mBitmap.getWidth() */;
    }
    
    public Bitmap getBitmap() {
        return mBitmap;
    }
}
